﻿// This code is released under the BSD license.
namespace GmailBrowser
{
    using System;
    using System.Drawing;
    using System.Windows.Forms;
    using PugLib.UI;

    public partial class GmailBrowser : PugForm
    {
        public GmailBrowser()
        {
            InitializeComponent();
        }

        private void GmailBrowser_Load(object sender, EventArgs e)
        {
            Rectangle foo = Screen.GetWorkingArea(this);
            if (foo.Width < this.ClientRectangle.Width ||
                foo.Height < this.ClientRectangle.Height)
            {
                this.WindowState = FormWindowState.Maximized;
            }
            else
            {
                this.WindowState = FormWindowState.Normal;
            }
            wb.Url = new Uri(@"http://www.gmail.com");
        }
    }
}